function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '物资名称',
      dataIndex: 'matNm',
      scopedSlots: { customRender: 'matNm' },
      align: 'center',
    },
    {
      title: '规格型号',
      dataIndex: 'specType',
      scopedSlots: { customRender: 'specType' },
      align: 'center',
    },
    {
      title: '辅助规格',
      dataIndex: 'asstSpec',
      scopedSlots: { customRender: 'asstSpec' },
      align: 'center',
    },

    {
      title: '计量单位',
      dataIndex: 'calcUnit',
      scopedSlots: { customRender: 'calcUnit' },
      align: 'center',
    },
    {
      title: '点收数量',
      dataIndex: 'chkinCnt',
      scopedSlots: { customRender: 'chkinCnt' },
      align: 'center',
    },
    {
      title: '列账单价(元)',
      dataIndex: 'actgUnitPrc',
      align: 'center',
      scopedSlots: { customRender: 'actgUnitPrc' },
    },
    {
      title: '列账金额(元)',
      dataIndex: 'actgAmt',
      scopedSlots: { customRender: 'actgAmt' },
      align: 'center',
    },
    {
      title: '生产厂家',
      dataIndex: 'prodMnfc',
      align: 'center',
      scopedSlots: { customRender: 'prodMnfc' },
    },
    {
      title: '点收时间',
      dataIndex: 'chkinTm',
      align: 'center',
      scopedSlots: { customRender: 'chkinTm' },
    },
    {
      title: '机构名称',
      dataIndex: 'orgNm',
      scopedSlots: { customRender: 'orgNm' },
      align: 'center',
    },
    {
      title: '合同编号',
      dataIndex: 'conNUm',
      scopedSlots: { customRender: 'conNUm' },
      align: 'center',
    },

    {
      title: '合同名称',
      dataIndex: 'conNm',
      scopedSlots: { customRender: 'conNm' },
      align: 'center',
    },
    {
      title: '供应商名称',
      dataIndex: 'splrNm',
      scopedSlots: { customRender: 'splrNm' },
      align: 'center',
    },
    {
      title: '是否扣税',
      dataIndex: 'ifDeduTax',
      align: 'center',
      scopedSlots: { customRender: 'ifDeduTax' },
    },
    {
      title: '库管员',
      dataIndex: 'wrhsKpr',
      scopedSlots: { customRender: 'wrhsKpr' },
      align: 'center',
    },
    {
      title: '采购员',
      dataIndex: 'buyer',
      align: 'center',
      scopedSlots: { customRender: 'buyer' },
    },
    {
      title: '操作',
      align: 'center',
      dataIndex: 'action',
      width: 150,
      scopedSlots: { customRender: 'action' },
    }
  ]
  return cols
}

















export {
  columns,
}